// 新版移动端路由配置
export default [
  {
    path: '/new',
    redirect: '/new/home'
  },
  {
    path: '/new/home',
    name: 'mobileHome',
    component: () => import('../new-views/home/index.vue'),
    meta: { 
      title: '首页', 
      keepAlive: true,
      icon: 'home-o',
      iconBg: 'blue'
    }
  },
  {
    path: '/new/apps',
    name: 'mobileApps',
    component: () => import('../new-views/applications/index.vue'),
    meta: { 
      title: '应用中心', 
      keepAlive: true,
      icon: 'apps-o',
      iconBg: 'green'
    }
  },
  {
    path: '/new/profile',
    name: 'mobileProfile',
    component: () => import('../new-views/profile/index.vue'),
    meta: { 
      title: '个人中心', 
      keepAlive: true,
      icon: 'user-o',
      iconBg: 'purple'
    }
  },
  // 财务模块路由
  {
    path: '/new/finance',
    name: 'mobileFinance',
    component: () => import('../new-views/finance/Layout.vue'),
    meta: {
      title: '财务管理',
      icon: 'balance-o',
      iconBg: 'blue'
    },
    children: [
      {
        path: 'expense',
        name: 'mobileFinanceExpense',
        component: () => import('../new-views/finance/Expense.vue'),
        meta: { title: '费用报销' }
      },
      {
        path: 'expense/:id',
        name: 'mobileFinanceExpenseDetail',
        component: () => import('../new-views/finance/ExpenseDetail.vue'),
        props: true,
        meta: { title: '报销详情' }
      },
      {
        name: 'invoice',
        path: 'invoice',
        component: () => import('@/new-views/finance/Invoice'),
        meta: {
          title: '发票管理',
          icon: 'invoice'
        }
      },
      {
        name: 'invoiceDetail',
        path: 'invoice/:id',
        component: () => import('@/new-views/finance/InvoiceDetail'),
        props: true,
        meta: {
          title: '发票详情'
        }
      },
      {
        path: 'salary',
        name: 'mobileFinanceSalary',
        component: () => import('../new-views/finance/Salary.vue'),
        meta: { title: '工资查询' }
      },
      {
        path: 'budget',
        name: 'mobileFinanceBudget',
        component: () => import('../new-views/finance/BudgetManagement.vue'),
        meta: { title: '预算管理' }
      },
      {
        path: 'travel/apply',
        name: 'mobileFinanceTravelApply',
        component: () => import('../new-views/finance/TravelApply.vue'),
        meta: { title: '出差申请' }
      },
      {
        path: 'travel/list',
        name: 'mobileFinanceMyTravelApply',
        component: () => import('../new-views/finance/MyTravelApply.vue'),
        meta: { title: '我的出差申请' }
      },
      {
        path: 'reimbursement/form',
        name: 'mobileFinanceReimbursementForm',
        component: () => import('../new-views/finance/ExpenseForm.vue'),
        meta: { title: '报销申请' }
      },
      {
        path: 'travel-standard',
        name: 'mobileFinanceTravelStandard',
        component: () => import('../new-views/finance/TravelStandard.vue'),
        meta: { title: '差旅标准' }
      },
      {
        path: 'travel-expense',
        name: 'mobileFinanceTravelExpense',
        component: () => import('../new-views/finance/TravelExpense.vue'),
        meta: { title: '差旅费报销' }
      },
      {
        path: 'application',
        name: 'mobileFinanceApplication',
        component: () => import('../new-views/finance/FinancialApplication.vue'),
        meta: { title: '财务申请' }
      }
    ]
  },
  // 资产模块路由
  {
    path: '/new/asset',
    name: 'mobileAsset',
    component: () => import('../new-views/asset/Layout.vue'),
    meta: {
      title: '资产管理',
      icon: 'desktop-o',
      iconBg: 'green'
    },
    children: [
      {
        path: 'list',
        name: 'mobileAssetList',
        component: () => import('../new-views/asset/List.vue'),
        meta: { title: '资产列表' }
      },
      {
        path: 'apply',
        name: 'mobileAssetApply',
        component: () => import('../new-views/asset/Apply.vue'),
        meta: { title: '资产领用' }
      },
      {
        path: 'repair',
        name: 'mobileAssetRepair',
        component: () => import('../new-views/asset/Repair.vue'),
        meta: { title: '资产维修' }
      },
       {
        path: 'inventory',
        name: 'mobileAssetInventory',
        component: () => import('../new-views/asset/Inventory.vue'),
        meta: { title: '资产盘点' }
      },
       {
        path: 'dispose',
        name: 'mobileAssetDispose',
        component: () => import('../new-views/asset/Dispose.vue'),
        meta: { title: '资产处置' }
      },
       {
        path: 'transfer',
        name: 'mobileAssetTransfer',
        component: () => import('../new-views/asset/Transfer.vue'),
        meta: { title: '资产调拨/转移' }
      }
    ]
  },
  // 物资模块路由
  {
    path: '/new/material',
    name: 'material',
    component: () => import('../new-views/material/Layout.vue'),
    meta: {
      title: '物资管理',
      icon: 'shopping-cart-o',
      iconBg: 'green'
    },
    children: [
       {
        path: 'apply',
        name: 'materialApply',
        component: () => import('../new-views/material/Apply.vue'),
        meta: { title: '物资申领' }
      },
      {
        path: 'list',
        name: 'materialList',
        component: () => import('../new-views/material/List.vue'),
        meta: { title: '库存查询' }
      },
      {
        path: 'inbound',
        name: 'materialInbound',
        component: () => import('../new-views/material/Inbound.vue'),
        meta: { title: '采购验收' }
      },
      {
        path: 'outbound',
        name: 'materialOutbound',
        component: () => import('../new-views/material/Outbound.vue'),
        meta: { title: '调拨验收/出库' } // 标题可能需要根据实际功能调整
      },
      {
        path: 'inventory',
        name: 'materialInventory',
        component: () => import('../new-views/material/Inventory.vue'),
        meta: { title: '物资盘点' }
      }
    ]
  }
] 